#include<stdio.h>
#include<stdlib.h>
#define MAX 10
typedef struct
{
	int row;//行号和列号
	int col;
	int d;
}san_yuan;
typedef struct
{
	int rows;//行数和列数
	int cols;
	int num;
	san_yuan data[MAX];
}san_yuanzu;
void initsan_yuanzu(san_yuanzu* &s)
{
	s = (san_yuanzu*)malloc(sizeof(san_yuanzu));
	s->rows = 0;
	s->cols = 0;
	s->num = 0;
}